#ifndef SSTRUCTURE_H
#define SSTRUCTURE_H

//
#include <QGraphicsScene>
#include "sege.h"
#include "snode.h"

class SNode;
class SEge;
//
class SStructure : public QGraphicsScene
{
Q_OBJECT
private:
	int nEges;
public:
	SStructure();
	SNode* addNode(qreal x,qreal y,QString label);
	SEge* addEge(QString from,QString to);
	SNode* getNode(QString nodeId);
	SEge* getEge(QString egeId);
	SEge* getEge(QString from, QString to);
	QMap <QString,SEge*> getEgesList();
	const int egesCount();
	const int nodesCount();
	QMap <QString,SNode*> nodes;
};
#endif
